package cn.comtom.ewbs.signature.entity;
 
import com.fasterxml.jackson.annotation.JsonFormat;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
 
/**
 * <p>
 * 
 * </p>
 *
 * @author liuhy
 * @since 2022-11-07 11:21:28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("sign_dev")
@ApiModel(value = "SignDev对象", description = "")
public class SignDev extends Model<SignDev> {
 
    private static final long serialVersionUID = 1L;
 
    @ApiModelProperty("主键")
    @TableId("id")
    private String id;
 
    @ApiModelProperty("签名设备名称")
    @TableField("dev_name")
    private String devName;
 
    @ApiModelProperty("IP地址")
    @TableField("ip")
    private String ip;
 
    @ApiModelProperty("端口")
    @TableField("port")
    private Integer port;
 
    @ApiModelProperty("设备证书号")
    @TableField("sign_no")
    private String signNo;
 
    @ApiModelProperty("数据类型：0，1")
    @TableField("data_type")
    private Integer dataType;
 
    @ApiModelProperty("设备状态：0-启用，1-停用")
    @TableField("dev_status")
    private Integer devStatus;
 
    @ApiModelProperty("最大连接数")
    @TableField("connect_count")
    private Integer connectCount;
 
    @ApiModelProperty("单位：ms")
    @TableField("time_out")
    private Integer timeOut;
    
    @ApiModelProperty("配置文件路径")
    @TableField("confile_path")
    private String confilePath;
    
    @ApiModelProperty("日志文件路径")
    @TableField("log_path")
    private String logPath;
    
    @ApiModelProperty("创建人")
    @TableField("creator")
    private String creator;
 
    @ApiModelProperty("创建日期")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
 
    @ApiModelProperty("更新人")
    @TableField("updater")
    private String updater;
 
    @ApiModelProperty("更新日期")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
 
 
    @Override
    public Serializable pkVal() {
        return this.id;
    }
 
}